"DESCRIPTION 1"="These days, most networks assign IP Number by using a DHCP server. By default, Windows does only allow to either use a DHCP assigned IP address, or a static (user-configured) IP address - not both at the same time. In some conditions however, you might want to have one more address beside the DHCP assigned IP address. With this setting, you can do just that."
"DESCRIPTION 2"="Simply click on the network connection where you would like to have an additional IP address and click on the "Add/Edit". Please note that this IP address will share the same settings (DNS Servers, WINS Servers etc.) as the DHCP assigned IP address. "
"DESCRIPTION 3"="When you are done with this, simply start and stop (Enable/Disable) the changed network connection by using Start -> Control Panel -> Network Connections. Once this is done, the secondary IP address is active."
"DESCRIPTION 4"="To remove the secondary IP address again, simply click on the Remove button."
"DESCRIPTION 5"="The "Show GUID" can be used to retrieve the Interface GUID for the selected network connection."
"DESCRIPTION 6"="Please note that this listing will show you only those network connections that have DHCP activated. All non-DHCP enabled network connections will not be listed here. "
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com/"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="Thanks to Pierre Szwarc <pierre@xteq.com> for the idea!"
"COMMENT 2"="Found by Daniel Petri, http://www.petri.co.il/configure_tcp_ip_to_use_dhcp_and_a_static_ip_address_at_the_same_time.htm"
Call MsgInformation("The GUID for the interface of the selected network connection is: " & sInterfaceGUID & chr(13) & chr(10) & "To copy this text to your clipboard: Press CTRL+C")
end if
if ElementIndex=2 then 'ADD/EDIT GUID
sIP=GetSecondIPAdress(sInterfaceGUID)
sSub=GetSecondSubnet(sInterfaceGUID)
sINP_IP=InputWindow("Please enter the secondary IP number for this network connection, for example 192.168.85.13",sIP,1)
if IsEmpty(sINP_IP)=false then
if Len(sINP_IP)>0 then
sINP_Sub=InputWindow("Please enter the secondary subnet mask for this network connection, for example 255.255.254.0",sSub,1)
if IsEmpty(sINP_Sub)=false then
if Len(sINP_Sub)>0 then
Call SetSecondIPAdress(sInterfaceGUID,sINP_IP)
Call SetSecondSubnet(sInterfaceGUID,sINP_Sub)
Call InitListbox()
end if
end if
end if
end if
end if
if ElementIndex=3 then 'REMOVE
Call SetSecondIPAdress(sInterfaceGUID,"")
Call SetSecondSubnet(sInterfaceGUID,"")
Call MsgInformation("The secondary IP has been removed.")